package com.use.utils.demo;

import cn.hutool.core.date.TimeInterval;
import cn.hutool.core.lang.Console;
import cn.hutool.core.thread.ThreadUtil;

public class TimerTest {
    public static void main(String[] args) {
        final TimeInterval timer = new TimeInterval();

// 分组1
        timer.start();
        ThreadUtil.sleep(800);


        Console.log("Timer 1 took {} ms", timer.intervalMs());

    }
}
